package com.bdzl.pub.vo.data;

import com.bdzl.pub.entity.data.UserInfoDO;
import com.bdzl.pub.entity.loan.OrderCustDO;
import com.bdzl.pub.entity.loan.OrderRelDO;
import com.bdzl.pub.entity.loan.OrderUsevehDO;
import com.bdzl.pub.vo.loan.ContractOnlineSignrecVO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
* @Description: TODO 客户个人信息vo
* @Author: Ming
* @Date: 2021/5/17 11:01
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class UserInfoVO extends UserInfoDO  implements Serializable {
    //申请人负债情况等数据
    private OrderCustDO orderCustDO;
    //手机验证码
    @NotNull(message = "请填写手机验证码！")
    private String verificationCode;
    //个人信息类型 0：客户本人 1：客户配偶 2：担保人
    private Integer type;
    //配偶数据
    @Valid
    private UserInfoVO spouse;
    //担保人
    @Valid
    private List<UserInfoVO> guarantorList;
    //申请人是否为实际用车人
    private String custUseFlag;
    //申请人不为实际用车人时负债情况等数据
    @Valid
    private OrderUsevehDO orderUsevehDO;
    //所属订单编号
    private String odrNo;
    //添加担保人为用车人时使用的申请人id
    private Integer odrCust;
    //担保人与申请人详细信息
    private OrderRelDO orderRelDO;
    //担保人是否为实际用车人
    private String guarantorFlag = "N";
    //征信授权书
    private boolean creditAuthorization = false;
    //征信授权书数据
    private ContractOnlineSignrecVO contractOnlineSignrecVO;
}
